﻿using Abcd.DynamicApi.Application.Contracts.Dtos;
using Abcd.DynamicApi.Application.Contracts.Interfaces;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp;
using Volo.Abp.Application.Services;

namespace Abcd.DynamicApi.Application.Services
{
    [Route("demo1")]
    [RemoteService]
    public class DemoService : ApplicationService, IDemoService
    {
        [HttpGet]
        public async Task<AaaDto> GetAsync(int id)
        {
            await Task.CompletedTask;

            return new AaaDto { Id = id, Code = "A001",Description="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"};
        }
    }
}
